package domain.users;

import java.io.Serializable;
import java.util.Observable;
import java.util.Observer;

public class User implements Serializable, Observer {

	private static final long serialVersionUID = -6997496898936418656L;
	protected int userId;
	private String name;
	private String email;
	private String type;

	public User(int userId, String name, String email, String type) {
		this.name = name;
		this.email = email;
		this.type = type;
		this.userId = userId;
	}

	public String getType() {
		return type;
	}
	@Override
	public String toString() {
		return "Id: " + userId + " Name: " + name + " Email: " + email + " Type: " + type;
	}

	public int getUserId() {
		return userId;
	}

	@Override
	public void update(Observable o, Object arg) {
		System.out.println("Player has been notified... name = " + name + ", o = " + o + ", arg = " + arg);
		System.out.println("Player = " + this);
	}

	public String getName() {
		return name;
	}
	



}
